/**
 *
 */
package wsepForum.network.common;


/**
 * @author
 *
 */
public class GUIAnswer extends AGUIPacket {

	public static enum AnswerType { ANSWER, EXCEPTION };

	private AnswerType answerType;
	private int numOfConnected;

	public GUIAnswer(AnswerType atype, Object[] args, int seq, int connected) {
		super(args, seq);
		this.answerType = atype;
		this.numOfConnected = connected;
	}


	public AnswerType getAnswerType() {
		return this.answerType;
	}

	public int getNumOfConnected(){
		return this.numOfConnected;
	}
	public String toString() {
		return "GUIANS:\nRequest type: " + this.answerType+"\nSequence Id:"+this.getSequenceID()+"\nArgsLen: "+this.getArguments().length+"\nNum of Connected: " + this.numOfConnected;
	}

}
